package com.mhc.suzuki.manager;

import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.PaymentRequestDO;
import com.mhc.suzuki.dal.query.PaymentRequestQuery;

import java.util.List;


/**
 * Manager for PaymentRequest.
 */
public interface PaymentRequestManager {
    /**
     * query count by query condition.
     */
    int countByQuery(PaymentRequestQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(PaymentRequestQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(PaymentRequestDO record);

    /**
     * insert selective.
     */
    long insertSelective(PaymentRequestDO record);

    /**
     * select by query condition.
     */
    List<PaymentRequestDO> selectByQuery(PaymentRequestQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<PaymentRequestDO> selectByQueryWithPage(PaymentRequestQuery query);

    /**
     * select by primary key.
     */
    PaymentRequestDO selectByPrimaryKey(Long id);

    /**
     * select by order no.
     */
    PaymentRequestDO selectByOrderNo(String orderNo);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( PaymentRequestDO record,  PaymentRequestQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(PaymentRequestDO record, PaymentRequestQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(PaymentRequestDO record);
}
